<template>
  <div>
    {{   age   }}
    <button @click="addone($event)"> + </button>
    <button @click="addtwo($event)"> +2 </button>
  </div>
</template>
<script   setup>
import {effect, ref} from 'vue'
const age  =  ref(1);
const addone = function(event){
  console.log(event.target);
  age.value++;
} 
const  addtwo = e =>  console.log(e.target);  

</script>
 